{% extends "base.html" %}		
{% block active2 %}active{% endblock %}
{% block BODY %}

<section id="article" class="main">
	<br/>
	<br/>
	<div class="container">
		<div class="row">
			<div class="span8">
				<ul class="nav-articles">
        		<nav id="desc">
            		<ul class="nav nav-tabs">
                		<li class="">
                    		<a href="/">评论</a>
                		</li>
                		<li class="active">
                    		<a href="/tags/">标签</a>
                		</li>
            		</ul>
        		</nav>
			<table class="table table-striped">
			 {% if reviewsInfo %}
              <thead>
                <tr>
                  <th>#</th>
                  <th width='80'>标签</th>
                  <th>短句</th>
                </tr>
              </thead>
			{% endif %}
              <tbody>
			{% for view in reviewsInfo %}
                <tr>
                  <td>{{view.id}}</td>
                  <td>{{view.tag}}</td>
                  <td>{{view.review|safe}}</td>
                </tr>
				{% endfor %}
              </tbody>
            </table>

				</ul>
			</div>

			<aside class="span3 offset1">
				<br/>
				<br/>
				<h3><i class="icon-tags"></i> 所有标签 <a href="/tags/"><i class="icon-remove"></i></a></h3>

				{% for tag in goodtags %}
					<a href="/tags/?tag={{tag}}" class="tag" style="font-size:15px;">{{tag}}</a>
				{% endfor %}
				{% for tag in badtags %}
					<a href="/tags/?tag={{tag}}" class="tag" style="font-size:15px;color:#000000;">{{tag}}</a>
				{% endfor %}
			</aside>
		</div>
	</div>
	<br>
	<br>
</section>
{% endblock %}

